<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>orders - write</title>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript">
	<!--
		function goList() {
			var f = document.ordersCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>

	<p>
		<a href="/">home</a>
	</p>

	<h1>Orders - edit</h1>

	<form:form commandName="ordersCriteria" id="ordersCriteriaForm"
		name="ordersCriteriaForm" action="/orders.do" method="get">
		<input type="hidden" name="mode" />
		<form:hidden path="orderid" />
		<form:hidden path="paging.currentPage" />
	</form:form>

	<form:form commandName="orders" name="ordersForm"
		action="/ordersEdit.do">
		<input type="hidden" name="mode" value="edit" />
		<form:hidden path="orderid" />
		<table width="800">
			<colgroup width="800">
				<col width="100" />
				<col width="*" />
			</colgroup>
			<tr>
				<th>orderid</th>
				<td><c:out value="${orders.orderid}" /></td>
			</tr>
			<tr>
				<th>userid</th>
				<td><form:input path="userid" /> <form:errors path="userid"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>orderdate</th>
				<td><form:input path="orderdate" /> <form:errors
						path="orderdate" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shipaddr1</th>
				<td><form:input path="shipaddr1" /> <form:errors
						path="shipaddr1" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shipaddr2</th>
				<td><form:input path="shipaddr2" /> <form:errors
						path="shipaddr2" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shipcity</th>
				<td><form:input path="shipcity" /> <form:errors
						path="shipcity" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shipstate</th>
				<td><form:input path="shipstate" /> <form:errors
						path="shipstate" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shipzip</th>
				<td><form:input path="shipzip" /> <form:errors path="shipzip"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shipcountry</th>
				<td><form:input path="shipcountry" /> <form:errors
						path="shipcountry" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billaddr1</th>
				<td><form:input path="billaddr1" /> <form:errors
						path="billaddr1" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billaddr2</th>
				<td><form:input path="billaddr2" /> <form:errors
						path="billaddr2" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billcity</th>
				<td><form:input path="billcity" /> <form:errors
						path="billcity" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billstate</th>
				<td><form:input path="billstate" /> <form:errors
						path="billstate" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billzip</th>
				<td><form:input path="billzip" /> <form:errors path="billzip"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billcountry</th>
				<td><form:input path="billcountry" /> <form:errors
						path="billcountry" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>courier</th>
				<td><form:input path="courier" /> <form:errors path="courier"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>totalprice</th>
				<td><form:input path="totalprice" /> <form:errors
						path="totalprice" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billtofirstname</th>
				<td><form:input path="billtofirstname" /> <form:errors
						path="billtofirstname" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>billtolastname</th>
				<td><form:input path="billtolastname" /> <form:errors
						path="billtolastname" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shiptofirstname</th>
				<td><form:input path="shiptofirstname" /> <form:errors
						path="shiptofirstname" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>shiptolastname</th>
				<td><form:input path="shiptolastname" /> <form:errors
						path="shiptolastname" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>creditcard</th>
				<td><form:input path="creditcard" /> <form:errors
						path="creditcard" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>exprdate</th>
				<td><form:input path="exprdate" /> <form:errors
						path="exprdate" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>cardtype</th>
				<td><form:input path="cardtype" /> <form:errors
						path="cardtype" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>locale</th>
				<td><form:input path="locale" /> <form:errors path="locale"
						cssClass="errorMessage" /></td>
			</tr>
		</table>
		<input type="submit" value="edit" />
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
